package com.guida.service.impl;

import com.guida.dao.UserMapper;
import com.guida.domain.User;
import com.guida.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//import javax.annotation.Resource;


@Service
public class UserServiceImpl implements UserService {

    // Autowired按bytype自动注入
    //Resource默认按byName自动注入。
    @Autowired(required = false)
    private UserMapper userMapper;
    @Override
    public User login(User user) {
        return userMapper.login(user);
    }
}
